xen/arm64: head: Rework and document zero_bss()
authorJulien Grall <julien.grall@arm.com>
Fri, 7 Jun 2019 18:59:15 +0000 (19:59 +0100)
committerJulien Grall <julien.grall@arm.com>
Wed, 31 Jul 2019 19:31:45 +0000 (20:31 +0100)
commit169191fd5360cf16b830afa366933574dd470d84
treee4cc968899633d301a7f77b1b99d4c76fa64db0c
parentcb8c713f4030eeb2ca5a5919ff9311032f5288ad
xen/arm64: head: Rework and document zero_bss()

On secondary CPUs, zero_bss() will be a NOP because BSS only need to be
zeroed once at boot. So the call in the secondary CPUs path can be
removed. It also means that x26 does not need to be set for secondary
CPU.

Note that we will need to keep x26 around for the boot CPU as BSS should
not be reset when booting via UEFI.

Lastly, document the behavior and the main registers usage within the
function.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm64/head.S